#include <REGX52.H>
#include "delay.h"

sbit LED = P2^0;


void main()
{
	unsigned char Time,T;
	while(1)
	{
		for(Time=0;Time<100;Time++)
		{
			for(T=0;T<20;T++)
			{
				LED = 0;
				delay(Time);
				LED = 1;
				delay(100-Time);
			}
		}
		for(Time=100;Time>0;Time--)
		{
			for(T=0;T<20;T++)
			{
				LED = 0;
				delay(Time);
				LED = 1;
				delay(100-Time);
			}
		}
	}
}